import panel from './panel.vue'
const source = {
  collectionName: "ent_enterprise",
  options: { exists: ["Accuracy", "Latitude"] }
}
const layer = {
  infoWindow: {
    component: panel,
    title: () => "企业"
  },
  marker: {
    coordinate: ({ Accuracy, Latitude }) => [Accuracy, Latitude],
    zoom(prop) {
      switch (prop.EnterpriseLevel) {
        case "1":
          return [1, 16];
        case "2":
          return [14, 16];
        default:
          return [14, 16];
      }
    },
    src: require("./企业.png"),
    size: [26, 34],
    text: "EnterpriseName",
    color: "transparent",
    textPos: "center"
  }
}
export default {
  sources: { enterprise: source },
  layers: { enterprise: layer }
}
